
using System;
using System.Runtime.InteropServices;
using System.Drawing;
using System.Drawing.Imaging;
using System.Windows.Forms;
using System.Diagnostics;


namespace MveScreenCapture
{
    
    
    
    public class ScreenCapture
    {
        public static void capture(String filename){
            
            Bitmap bmp = new Bitmap(945,600);
            Graphics g = Graphics.FromImage(bmp);
            g.CopyFromScreen(new Point(0, 0), new Point(0, 0), bmp.Size);
            string filePath = Environment.GetFolderPath(Environment.SpecialFolder.DesktopDirectory)+"/"+filename ;
            
            bmp.Save(filePath, ImageFormat.Png);
           
        }

    }
}